package com.dc.project.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dc.project.system.dto.SysUserDto;
import com.dc.project.system.entity.SysUser;
import com.dc.project.system.vo.SysUserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 系统用户表(SysUser)表数据库访问层
 *
 * @author zhuangcy
 * @since 2021-06-01 14:30:11
 */
public interface SysUserDao extends BaseMapper<SysUser> {

    /**
     * 查询所有数据
     *
     * @param sysUser
     * @return
     */
    List<SysUser> queryAll(SysUser sysUser);

    /**
     * 查询用户分页信息
     *
     * @param page
     * @param dto
     * @return
     */
    IPage<SysUserVo> queryByPage(IPage page, @Param("dto") SysUserDto dto);
}